package com.sky.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Employee implements Serializable {

	private static final long serialVersionUID = 1L;

	private Long id;


	private String username;

	private String name;

	private String password;

	private String phone;

	private String sex;

	private String idNumber;

	private Integer status;

	// 日期格式化处理，缺点：需要一个一个属性去指定格式化
	// @JsonFormat(pattern = "yyyy-MM-dd")
	private LocalDateTime createTime;

	//@JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
	private LocalDateTime updateTime;

	private Long createUser;

	private Long updateUser;

}
